﻿using AutoMapper;
using Traceability.APP.Applications.Commands.Suyuan;
using Traceability.APP.Applications.Commands.YangZhi;
using Traceability.Domain;

namespace Traceability.APP
{
    public class MapperProfiles : Profile
    {
        public MapperProfiles()
        {
            CreateMap<SuyuanCreateCommand, BasicTraceabilityModel>();
            CreateMap<SuyuanUpdCommand, BasicTraceabilityModel>();
            CreateMap<SuyuanDelCommand, BasicTraceabilityModel>();
            CreateMap<YangZhiAddCommand, FarmModel>();
            CreateMap<YangZhiUpdCommand, FarmModel>();
            CreateMap<HealthAddCommand, HealthModel>();
            CreateMap<HealthUpdCommand, HealthModel>();
            CreateMap<HealthDelCommand, HealthModel>();
            CreateMap<FarmCompanyAddCommand, FarmCompanyModel>();
            CreateMap<FarmCompanyUpdCommand, FarmCompanyModel>();
        }
    }
}
